//
//  UUOrderModel.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 24/01/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <UUFoundation/UUBaseModel.h>

@interface UUOrderDispatchItemModel : UUBaseModel

@property (nonatomic, strong) NSNumber *fleetId;
@property (nonatomic, strong) NSNumber *driverId;
@property (nonatomic, strong) NSNumber *carId;

@property (nonatomic, copy) NSString *fleetName;
@property (nonatomic, copy) NSString *driverName;
@property (nonatomic, copy) NSString *driverMobile;
@property (nonatomic, copy) NSString *carNum;

@end

@interface UUOrderModel : UUBaseModel

@property (nonatomic, strong) NSNumber *id;
@property (nonatomic, strong) NSNumber *carCategoryId;
@property (nonatomic, strong) NSNumber *price; // 单价
@property (nonatomic, strong) NSNumber *vendorMoney; // 分佣后的价格
@property (nonatomic, strong) NSNumber *departCityId;
@property (nonatomic, strong) NSDate *departTime;
@property (nonatomic, assign) CGFloat days;
@property (nonatomic, assign) NSInteger carNum;
@property (nonatomic, assign) NSTimeInterval updateTime;
@property (nonatomic, assign) UUOrderType type;
@property (nonatomic, assign) UUOrderStatus status;
@property (nonatomic, assign) UUOrderRefundStatus refundStatus; // 退款状态

@property (nonatomic, copy) NSString *line; // 线路名称
@property (nonatomic, copy) NSArray<UUOrderDispatchItemModel *> *dispatch;

@end

@interface UUOrderDetailModel : UUOrderModel

@property (nonatomic, copy) NSString *orderSn;
@property (nonatomic, copy) NSString *departure;
@property (nonatomic, copy) NSString *arrival;
@property (nonatomic, copy) NSString *contact;
@property (nonatomic, copy) NSString *contactMobile;
@property (nonatomic, copy) NSString *tagIds;
@property (nonatomic, copy) NSString *extra;
@property (nonatomic, copy) NSString *approach;
@property (nonatomic, assign) NSInteger score;
@property (nonatomic, copy) NSString *specInfo;
@property (nonatomic, strong) NSNumber *intentOrderId;
@property (nonatomic, strong) NSNumber *totalPrice;

@property (nonatomic, strong) NSNumber *refundMoney;            // 退款金额
@property (nonatomic, copy) NSString *refusalReason;            // 退款理由
@property (nonatomic, strong) NSDate *refundTime;               // 退款时间

- (UUAddressModel *)departureAddressModel;
- (UUAddressModel *)arrivalAddressModel;

@end
